package com.ogawa.project8506e.bean;


public class Massage8506EArmchair {

    private static Massage8506EArmchair instance;
    private Device8506EStateBean deviceStatusBean;
    private int runningStatus;
    private int reset=1;
    private Device8506EOffBean deviceOffBean;
    private String fault;

    private Massage8506EArmchair() {

    }

    public static Massage8506EArmchair getInstance() {
        if (instance == null) {
            synchronized (Massage8506EArmchair.class) {
                if (instance == null) {
                    instance = new Massage8506EArmchair();
                }
            }
        }
        return instance;
    }

    public Device8506EOffBean getDeviceOffBean() {
        return deviceOffBean;
    }

    public void setDeviceOffBean(Device8506EOffBean deviceOffBean) {
        this.deviceOffBean = deviceOffBean;
    }

    public String getFault() {
        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    public static void setInstance(Massage8506EArmchair instance) {
        Massage8506EArmchair.instance = instance;
    }

    public Device8506EStateBean getDeviceStatusBean() {
        return deviceStatusBean;
    }

    public void setDeviceStatusBean(Device8506EStateBean deviceStatusBean) {
        this.deviceStatusBean = deviceStatusBean;
    }

    public int getRunningStatus() {
        return runningStatus;
    }

    public void setRunningStatus(int runningStatus) {
        this.runningStatus = runningStatus;
    }

    public void setReset(int reset) {
        this.reset = reset;
    }

    public int getReset() {
        return reset;
    }

    //    public boolean isSeniorMassage() {
//        if (deviceStatusBean == null) {
//            return false;
//        }
//        DeviceStateBean.FunctionsBean.XyzHandTypeBean xyzHandType = deviceStatusBean.getFunctions().getXyzHandType();
//        DeviceStateBean.FunctionsBean.KnockHandTypeBean knockHandType = deviceStatusBean.getFunctions().getKnockHandType();
//        DeviceStateBean.FunctionsBean.AirCellShoulderBean airCellShoulder = deviceStatusBean.getFunctions().getAirCellShoulder();
//        DeviceStateBean.FunctionsBean.AirCellHandBean airCellHand = deviceStatusBean.getFunctions().getAirCellHand();
//        DeviceStateBean.FunctionsBean.AirCellWholebodyBean airCellWhole = deviceStatusBean.getFunctions().getAirCellWholebody();
//        DeviceStateBean.FunctionsBean.AirCellWaistBean airCellWaist = deviceStatusBean.getFunctions().getAirCellWaist();
//        DeviceStateBean.FunctionsBean.AirCelllegBean airCellLeg = deviceStatusBean.getFunctions().getAirCellleg();
//        DeviceStateBean.FunctionsBean.FootWheelButtonBean footRoll = deviceStatusBean.getFunctions().getFootWheelButton();
//        DeviceStateBean.FunctionsBean.HandScrollButtonBean handRoll = deviceStatusBean.getFunctions().getHandScrollButton();
//        DeviceStateBean.FunctionsBean.HeatBackBean backHeat = deviceStatusBean.getFunctions().getHeatBack();
//        DeviceStateBean.FunctionsBean.KneeHeatBean kneeHeat = deviceStatusBean.getFunctions().getKneeHeat();
//        DeviceStateBean.FunctionsBean.AutoProgramBean auto = deviceStatusBean.getFunctions().getAutoProgram();
//        return Integer.parseInt(auto.getModelValue()) == 0 && (
//                Integer.parseInt(xyzHandType.getModelValue()) != 0
//                        || Integer.parseInt(knockHandType.getModelValue()) != 0
//                        || Integer.parseInt(airCellShoulder.getModelValue()) != 0
//                        || Integer.parseInt(airCellHand.getModelValue()) != 0
//                        || Integer.parseInt(airCellWhole.getModelValue()) != 0
//                        || Integer.parseInt(airCellWaist.getModelValue()) != 0
//                        || Integer.parseInt(airCellLeg.getModelValue()) != 0
//                        || Integer.parseInt(footRoll.getModelValue()) != 0
//                        || Integer.parseInt(handRoll.getModelValue()) != 0
//                        || Integer.parseInt(backHeat.getModelValue()) != 0
//                        || Integer.parseInt(kneeHeat.getModelValue()) != 0
//        );
//    }
}
